﻿<controls:PanoramaItem xmlns:my="clr-namespace:LiveEduWizard"  x:Class="LiveEduWizard.Views.TimetableView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:controls="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls"
    xmlns:local="clr-namespace:LiveEduWizard"
    mc:Ignorable="d"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    d:DesignHeight="480" d:DesignWidth="480">

    <controls:PanoramaItem.Resources>
        <local:VisibilityConverter x:Key="visibilityConverter"/>
    </controls:PanoramaItem.Resources>
    
    <controls:PanoramaItem.HeaderTemplate>
        <DataTemplate>
            <StackPanel Orientation="Horizontal">
                <Rectangle Width="8" Margin="0,27,20,17" Height="56" StrokeThickness="1" Loaded="HeaderRectangle_Loaded">
                    <Rectangle.Stroke>
                        <SolidColorBrush Opacity="0.7" Color="{Binding Source={StaticResource ThemeHelper}, Path=AccentColor}" />
                    </Rectangle.Stroke>
                    <Rectangle.Fill>
                        <SolidColorBrush Opacity="0.25" Color="{Binding Source={StaticResource ThemeHelper}, Path=AccentColor}" />
                    </Rectangle.Fill>
                </Rectangle>
                <TextBlock Text="{Binding Content, RelativeSource={RelativeSource TemplatedParent}}"/>
            </StackPanel>
        </DataTemplate>
    </controls:PanoramaItem.HeaderTemplate>
    
    <ScrollViewer x:Name="ScrollViewer" Margin="0,0,0,0" HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Hidden">
        <my:Timetable x:Name="TimetableControl" TimeStyle="{StaticResource PhoneTextTitle3Style}" PropertyChanged="TimetableControl_PropertyChanged" Margin="0,0,0,74"/>
    </ScrollViewer>

</controls:PanoramaItem>
